package org.adorsys.aderp.po.domain;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.ManyToMany;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaEntity
public class PoData {

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<SupplCat> supplCats = new HashSet<SupplCat>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<OrderCat> orderCats = new HashSet<OrderCat>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<OrgaPersonRef> supplierRefs = new HashSet<OrgaPersonRef>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Supplier> suppliers = new HashSet<Supplier>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<PurchaseOrder> purchaseOrders = new HashSet<PurchaseOrder>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<ProductRef> productRefs = new HashSet<ProductRef>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<OrderItem> orderItems = new HashSet<OrderItem>();
}
